package com.example.boot1.service;

import com.example.boot1.bean.VueCuisine;
import com.example.boot1.bean.VuePeiCuisineBean;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface VueCuisineService{

    int deleteByPrimaryKey(Integer id);

    int insert(VueCuisine record);

    int insertSelective(VueCuisine record);

    VueCuisine selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(VueCuisine record);

    int updateByPrimaryKey(VueCuisine record);

    List<VueCuisine>  findByName(String name);

    List<VueCuisine> getAllCuisine(HttpServletRequest request, Integer page);

    int  findAllTotal();

    List<VueCuisine> findByIdAndName(Integer id,String name);

    List<VuePeiCuisineBean> findBySaleTop10();

}
